package demo2;

public class Path {
    public static String readPathTest(String path){

        int index1 = path.lastIndexOf("/");
        int index2 = path.lastIndexOf(".");
        String s1 = path.substring(index1 + 1,index2);
        return s1;
    }
}
